package cn.suse.android.logic;

import java.util.List;

import org.json.JSONObject;

import cn.suse.android.entity.Page;


public abstract class BaseParse<T> {

	public abstract List<T>parseData(String content);
	public Page parsePage(JSONObject jsonObject){
		String prev = "";
		String next = "";
		try {
			prev = jsonObject.getString("prev");
			next = jsonObject.getString("next");
		} catch (Exception e) {
			return null;
		}
		return new Page(prev, next);
	}
}
